<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

Route::get('email','ApplyController@emailTeacher');

Route::get('index','ApplyController@index');

Route::post('apply','ApplyController@apply');

Route::get ('download','ApplyController@downLoadApplyFile');

Route::get('emailView',function(){
    return view('email.sendTeacher');
});

Route::get('pass_apply','TeacherController@passApply');

Route::get('deny_apply','TeacherController@denyApply');

Route::get('teacher/index','TeacherController@index');

Route::get('teacher/history','TeacherController@history');

Route::post('teacher/set_key_user','TeacherController@setKeyUser');

Route::post('delete_apply','TeacherController@deleteApply');

if(env('APP_ENV')=='local'){

    Route::get('teacher/send_key_user','TeacherController@sendPassToKeyUser');
}




